const route = [
    //首页
    {
        path: '/',
        redirect: '/index',
        component: () => import('@/views/layout.vue'),
        children: [
            {
                path: '/index',
                component: () => import('@/views/index/index.vue'),
                meta: {
                    requireAuth: true,
                }
            },
            {
                path: '/user',
                component: () => import('@/views/user/index.vue'),
                meta: {
                    requireAuth: true,
                }
            },
            {
                path: '/money',
                component: () => import('@/views/money/index.vue'),
                meta: {
                    requireAuth: true,
                }
            },
            {
                path: '/seting',
                component: () => import('@/views/seting/index.vue'),
                meta: {
                    requireAuth: true,
                }
            },
        ]
    },

    //  登录页
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
    },


];
export default route
